CS1504 Example:
Microsoft Visual Basic application:

Overview:
====================================================================================
This simple example was created in Visual Basic 6.  Its purpose is to provide an 
example of how to interface Visual Basic to the CS1504 API via the csp2.dll.  For 
this example and during development, the csp2.dll should be located in the 
directory where the application resides or is being created.  

To use the application, the "Open COM" button must be pressed first.   This 
button opens the COM Port specified by "COM Port" combo box.  The state of 
the COM port connection is displayed in "State" text box.  

The available operations to the CS1504 are organized into different categories 
with each having its own exclusive tab.  

The Basic Tab allows the user perform the following operations; Set Time, Get 
Time, Power Down, Wake up, and Factory Reset.  

The Advance Tab allows the user get or set parameters on the CS1504.  Please 
refer to the Internal CS1504 Parameter document for a description of the 
parameter number and values.  The results of the get/set operations are displayed 
Advance Tab text box.

The DLL Settings Tab allows the user to specify the retry count for the 
csp2Interrogate command.  By default this value is five.  The minimum and 
maximum values are 0 and 9 respectively.

The Get Barcode Tab allows the user to perform the following functions; Get 
Barcodes, Clear Barcodes, Set Auto Barcode download, and Clear and save the 
display.  The Auto Barcode download feature downloads Barcode data 
automatically from the CS1504 and displays it in the Get Barcode Tab text box.  
After the Barcode download and display is complete, the Barcodes on the CS1504 
are deleted. 

The CS1504 Info Tab allows the user to view the Device ID, Protocol Version, 
System Status, Firmware version, ASCII Mode, and RTC Mode.  The Device ID, 
protocol Version, System Status, and Firmware version is only available after a 
command that interrogates the device has occurred.  The ASCII mode and RTC 
mode are available after a "Read Data" has occurred.

API Calls:
====================================================================================
The following CS1504 API functions are used in this application:

csp2SetDebugMode(), csp2Init(), csp2GetDllVersion(), csp2ReadData(), 
csp2GetDeviceId(), csp2GetSwVersion(), csp2GetASCIIMode(), 
csp2GetRTCMode(), csp2GetPacket(), csp2CleareData(), csp2Restore(), 
csp2Interrogate(), csp2GetDeviceId(), csp2GetProtocol(), csp2GetSystemStatus(), 
csp2GetCTS(), csp2SetRetryCount(), csp2GetRetryCount(), csp2GetParam(), 
csp2SetParam(), csp2PowerDown(), csp2Wakeup(), csp2SetDefaults(), 
csp2SetTime(), csp2GetTime().

Please refer to the Symbol Technologies Inc. 32-Bit Dynamic Link Library for 
CS1504 Applications document for a description of the API and it's usage. 






